<?php
/**
 * Created by PhpStorm.
 * User: cuibenyong
 * Date: 2019/9/14
 * Time: 10:26 AM
 */

namespace app\index\validate;


use think\Validate;

class Password extends Validate
{

    protected $rule = [
        'oldPass' => 'require|max:25',
        'newPass' => 'require|min:6|max:16|confirm',
    ];

    protected $message = [
        'oldPass.require' => '原密码不能为空',
        'newPass.min' => '请输入6-16位新密码',
        'newPass.max' => '请输入6-16位新密码',
    ];
}